<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/4
 * Time: 16:08
 */

namespace App\Http\Requests\Role;

use App\Http\Requests\ApiRequest;

class AllRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * 'menu'：前端路由
     *
     * @return bool
     */
    public function authorize()
    {
        return self::checkPermission('menu');
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [];
    }

    /**
     * 获取已定义验证规则的错误消息。
     *
     * @return array
     */
    public function messages()
    {
        return [];
    }
}